package com.qfedu.edu.classservice.utils;

import com.qfedu.edu.constance.FTPConstance;
import org.apache.commons.net.ftp.FTPClient;

/**
 * @author xiaobobo
 * @title: Test
 * @projectName seckill-fy-2401-parent
 * @description: TODO
 * @date 2024/11/8  12:15
 */
public class Test {

 public static void main(String[] args){
  //要上传文件
  FTPClient ftpClient = new FTPUtil().getFTPClient(
          FTPConstance.getFtpHost(),
          FTPConstance.getFtpPort(),
          FTPConstance.getFtpUsername(),
          FTPConstance.getFtpPassword());
  //接下来就可以调用咋们的API完成文件的上传了
  FTPUtil.uploadFile(ftpClient,"G:\\360MoveData\\Users\\apple\\Desktop\\xxx.txt",FTPConstance.getUploadPath());
  System.out.println("静态页面上传到Openresty成功....");
 }
}
